/* pages/Itinerary/Itinerary.wxss */
page {
  background-color: #f9f9f9;
}

.top-heard {
  background: linear-gradient(to bottom, #CFEDE5, #FFFFFF);
  border-radius: 0 0 50rpx 50rpx;
  padding-top: 20rpx;
  padding-bottom: 32rpx;

  .top-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48rpx;

    // margin-bottom: 14rpx;
    .top-text-title {
      font-size: 40rpx;
    }

    .top-more {
      font-size: 32rpx;

      .more-img {
        width: 32rpx;
        height: 22rpx;
        margin-left: 14rpx;
      }
    }
  }

  .bottom-content-no {
    height: 200rpx;
    padding: 0 32rpx;
    margin-top: 48rpx;

    .no-box {
      height: 200rpx;
      background-color: #fff;
      border-radius: 32rpx;
      padding: 8rpx 0 12rpx;
      display: flex;
      flex-direction: column;
      align-items: center;

      // justify-content: space-between;
      .none-img {
        width: 118rpx;
        height: 102rpx;
      }

      .none-text {
        font-size: 28rpx;
        margin: 8rpx 0 16rpx;
      }

      .none-btn {
        background-color: #1AA37D;
        border-radius: 128rpx;
        color: #fff;
        font-size: 28rpx;
        height: 56rpx;
        width: 208rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -32rpx;
      }
    }
  }

  .bottom-content {
    margin-top: 48rpx;
    display: flex;
    align-items: center;
    padding: 32rpx;
    position: relative;
    height: 200rpx;

    .button-box {
      position: absolute;
      top:38rpx;
      left: 212rpx;
      display: flex;
      flex-direction: column;

      .button-img {
        width: 48rpx;
        height: 20rpx;
      }
    }

    .heard-img {
      height: 200rpx;
      width: 200rpx;
      border-radius: 48rpx;
      margin-right: 14rpx;
    }

    .heard-detail {
      flex: 1;
      background-color: #fff;
      border-radius: 48rpx;
      padding: 16rpx 34rpx;
      height: 200rpx;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .detail-title {
      font-size: 36rpx;
      font-weight: 600;
      display: -webkit-box;
      line-height: 1.4;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }

    .detail-content {
      margin-top: 20rpx;
      line-height: 40rpx;
      font-size: 24rpx;
      color: #A2A2A2;
      display: flex;
      flex-direction: column;

      // padding-left: 12rpx;
      .detail-bottom {
        .detail-bottom-text {
          width: 2rpx;
          height: 22rpx;
          background-color: #D9D9D9;
          margin-right: 12rpx;
        }

        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }
  }
}

/* pages/travel/list.wxss */
.travel-container {
  min-height: 50vh;
  // height: 100vh;
  display: flex;
  flex-direction: column;
}

.scroll-box {
  flex: 1;
  height: 0;
  /* 配合 flex:1 占满剩余空间 */
  overflow-y: scroll;
}

/* 顶部选项卡 */
.header-box {
  display: flex;
  align-items: center;

  .header {
    display: flex;
    align-items: center;
    background-color: #fff;
    margin: 32rpx;
    border-radius: 128rpx;
  }

  .more-box {
    width: 60rpx;
    height: 60rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10rpx;

    .more-img {
      width: 30rpx;
      height: 24rpx;
    }
  }

}

.header .title {
  flex: 1;
  text-align: center;
  font-size: 32rpx;
  color: #A2A2A2;
  padding: 22rpx 90rpx;
  border-radius: 128rpx;
}

.header .title.active {
  color: #333;
  background-color: #CFEDE5;
  position: relative;
  font-weight: 600;
}


/* 行程列表 */
.list-container {
  flex: 1;
  padding: 16rpx 40rpx;
}

.travel-item {
  border-radius: 16rpx;
  margin-bottom: 32rpx;
}

.item-content {
  position: relative;

  .days {
    font-size: 28rpx;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 44rpx;
    padding: 16rpx 20rpx;
    position: absolute;
    top: 230rpx;
    right: 30rpx;
    display: flex;
    align-items: center;

    .collect-img {
      width: 48rpx;
      height: 48rpx;
      margin-right: 10rpx;
    }
  }

  .content-img {
    width: 100%;
    border-radius: 56rpx;
    height: 320rpx;
    margin-bottom: 20rpx;
  }

  .user-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .user-left {
      display: flex;
      align-items: center;

      .user-img {
        width: 42rpx;
        height: 42rpx;
        margin-right: 12rpx;
        border-radius: 50%;
      }

      .user-name {
        font-size: 28rpx;
        color: #707070;
      }
    }

    .user-right {
      display: flex;
      align-items: center;
      padding-right: 50rpx;

      .collect-user {
        width: 32rpx;
        height: 32rpx;
        margin-right: 12rpx;
      }

      .user-num {
        font-size: 28rpx;
        color: #707070;
      }
    }
  }
}

.item-content .title {
  display: block;
  font-size: 36rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 16rpx;
  display: -webkit-box;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-content .subtitle {
  display: block;
  font-size: 30rpx;
  color: #707070;
  line-height: 1.4;
  /* 限制两行显示省略号 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.list-box {
  display: flex;
  padding: 16rpx 40rpx;
  gap: 22rpx;
  
}

.list-hot {
  display: flex;
  flex-wrap: wrap;
  // flex-direction: column;
  justify-content: space-between;
  .hot-item {
    width: 324rpx;
    margin-bottom: 32rpx;
  }

  .item-content {
    position: relative;

    .days {
      font-size: 28rpx;
      color: #FFFFFF;
      background: #000;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 44rpx;
      padding: 16rpx 20rpx;
      position: absolute;
      top: 216rpx;
      right: 30rpx;
    }

    .content-img {
      width: 324rpx;
      border-radius: 48rpx;
      height: 324rpx;
      margin-bottom: 20rpx;
    }

    .title {
      display: block;
      font-size: 32rpx;
      color: #333;
      font-weight: bold;
      margin-bottom: 12rpx;
      /* 文字超出显示省略号 */
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }



    .item-content .subtitle {
      display: block;
      font-size: 30rpx;
      color: #A2A2A2;
      /* 限制两行显示省略号 */
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      overflow: hidden;
    }
  }
}